package com.jz.dao;

import com.jz.entity.User;

import java.util.List;

public interface UserDao {
    //登录查询
    public User login(String username ,String password);
    //分页查询
    public List<User> queryUser(String name, int pageSize, int curPage);
    //查询记录
    public int queryUserCount(String name);
    //根据编号查询用户信息
    public User queryUserById(String uid);
    //添加用户信息
    public int addUser(User u);
    //批量删除
    public int deleteUser(String uid);
    //修改用户信息
    public int updateUser(User u);

}
